package com.cqs.learning.nacos;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author lixw
 * @date created in 22:23 2020/5/5
 */
@SpringBootApplication
@EnableDiscoveryClient
public class NacosAppConsumer {

    public static void main(String[] args) {
        SpringApplication.run(NacosAppConsumer.class, args);
    }

    /**
     * 实例化 RestTemplate 实例
     *
     * @return
     */
    @Bean
    public RestTemplate restTemplate() {

        return new RestTemplate();
    }


}
